package vg.services.user_interface_manager.additional_swing_components.conditionPanel.components;

import java.awt.GridLayout;

import javax.swing.JComboBox;
import javax.swing.JPanel;

public class Operator {
	// Swing data
	private JComboBox operator; // operators between conditions(and, or)
	private JPanel view;

	public Operator() {
		operator = new JComboBox();
		operator.addItem("or");
		operator.addItem("and");
		
		view = new JPanel(new GridLayout(1, 1));
		
		view.add(operator);
	}
	
	public JPanel getView() {
		return view;
	}
	
	public String getText() {
		return operator.getSelectedItem().toString();
	}
}
